<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .yuanxing {
            width: 200px;
            height: 200px;
            background-color: pink;
            /* border-radius: 100px; */
            /* 百分之五十。表示宽的一半 */
            border-radius: 50%;

        }

        .juxing {
            width: 300px;
            height: 100px;
            background-color: pink;
            border-radius: 50px;

        }

        .radius {
            width: 500px;
            height: 500px;
            background-color: pink;
            /* border-radius有四个属性，分别是左上角，右上角，右下角，左下角 */
            /* 还可以分开写:border-top-left-radius,border-top-right-radius... */
            border-radius: 10px 20px 30px 40px;
        }
    </style>
</head>

<body>
    1.圆形的做法
    <div class="yuanxing"></div>
    2.矩形的做法
    <div class="juxing"></div>
    3
    <div class="radius"></div>
</body>

</html>